package ucap.com.lesanapp.base;

import android.app.Activity;
import android.view.View;
import android.widget.FrameLayout;

import ucap.com.lesanapp.R;


/**
 * Created by Administrator on 2016/7/27.
 */
public class BasePager {
    public Activity mActivity;
    public View mLayout;
    public FrameLayout flContent;

    public BasePager(Activity mActivity) {
        this.mActivity = mActivity;
        mLayout = intiView();
        intiDate();
        intiDateForService();
    }

    /**
     * 初始化布局
     *
     * @return
     */
    public View intiView() {
        View view = View.inflate(mActivity, R.layout.base_pager, null);
        flContent = (FrameLayout) view.findViewById(R.id.fl_content);
        return view;
    }

    /**
     * 初始化数据
     */
    public void intiDate() {
    }

    /**
     * 初始化网路数据
     */
    public void intiDateForService() {

    }
}
